<script setup >
import InviteTeachers from './InviteTeachers.vue';


const props = defineProps(['isOpenModal'])
const emit = defineEmits(['closeModal'])

function closeModal() {
    emit('closeModal')
}

</script>
<template>
    <div class="add-teacher-modal" :class="{ open: props.isOpenModal }">

        <div class="container">
            <div class="content">
                <div class="header">
                    <img src="/src/assets/images/student/close.svg" alt="Delete" @click="closeModal" />
                </div>

                <div class="main">
                    <div class="title" >
                        <p>添加老师</p>
                        <InviteTeachers class="add-teacher-item" />
                        <InviteTeachers class="add-teacher-item" />
                        <InviteTeachers class="add-teacher-item" />
                        <InviteTeachers class="add-teacher-item" />
                    </div>
                </div>
            </div>
        </div>
    </div>


</template>
<style scoped>
.add-teacher-modal {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    z-index: 20;
}

.add-teacher-modal.open {
    display: block;
}

.add-teacher-modal>.container {
    display: flex;
    width: 100%;
    /* height: 100%;*/
    justify-content: center;
    align-items: center;
}

.add-teacher-modal>.container>.content {
    width: 500px;
    /*height: 491px;*/
    background-color: #ffffff;
    border: none;
    box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
    padding: 20px 50px;
    margin: 80px 0;
}

.add-teacher-modal>.container>.content>.header {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-bottom: 30px;
}

.add-teacher-modal>.container>.content>.header>img {
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s;
}

.add-teacher-modal>.container>.content>.header>img:hover {
    transform: rotate(90deg);
}

.main > .title > p {
	font-family: Source Han Sans CN;
	font-size: 18px;
	font-weight: bold;
	line-height: 18px;
	color: #707070;
}


.add-teacher-item {
    margin: 10px 0;
    border-top: solid 1px #8a8a8a;
    padding: 5px 0;
}

.add-teacher-item:last-of-type {
    border-bottom: solid 1px #8a8a8a;
}




</style>